<?php
/*
# ------------------------------------------------------------------------
# JD Base Theme
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
?>
<?php
$profiles = $T3Cpanel->getProfiles();

$currprofiles = $T3Profile->get('profile_name') ;
if (count ($profiles) < 2) return;
?>

<h3><?php echo t('Change Profile')?></h3>

<div class="ja-box-usertools">
  <ul class="ja-usertools-profile clearfix">
  <?php foreach ($profiles as $profile=>$profile_info) : ?>
  	<li class="cprofile <?php echo ($profile == $currprofiles)?'profile-active':'' ?>">
  	<input type="radio" id="user_profile_<?php echo $profile ?>" name="user_profile" value="<?php echo $profile ?>" <?php echo ($profile == $currprofiles)?'checked="checked"':'' ?> />
  	<label for="user_profile_<?php echo $profile ?>" title="<?php echo $profile ?>"><span><?php echo $profile ?></span>
  	</label></li>	
  <?php endforeach; ?>
  </ul>
</div>